home *** CD-ROM | disk | FTP | other *** search
- Path: news.cc.sunysb.edu!usenet
- From: dkat@psych1.psy.sunysb.edu (Donna Kat)
- Newsgroups: comp.lang.c
- Subject: Re: Help, I think with an array
- Date: Tue, 16 Apr 1996 22:19:19 GMT
- Organization: State University of New York at Stony Brook
- Message-ID: <4l0r2l$rb9@abel.cc.sunysb.edu>
- References: <4kbhcl$p4l@uwm.edu> <316be255.2788761@news.netvision.net.il>
- NNTP-Posting-Host: catsam.psy.sunysb.edu
- X-Newsreader: Forte Free Agent 1.0.82
-
- why do you need two arrays? You have one array with age as the index
- and points as the value
-
- if you have 7 tables
-
- int table[NUMTABLE][YEARS] {0,1,...............};
-
- if you start at age 34 then
-
- print{"TABLE 1\n%d\t%d.", age,table[0][age-34]);
- etc.
-
-